package top.hepingan.java.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@TableName("user")
@Accessors(chain = true)
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String openId;

    private String username;

    private String password;

    private LocalDateTime createdTime;

    private String phone;

    private String avatar;

    private Integer experience;

    private Integer level;

    private String role;

    private String avatarFrameUrl;

    private String backgroundImage;

    private LocalDateTime lastLoginTime;

}
